package com.wushijia.netty;

import java.util.Date;

public class BaseMessage {

  private Date createDate;
  private Date receiveDate;
  private String messageContent;
  private int messageId;

  public BaseMessage(int messageId, String messageContent, Date createDate) {
    this.messageId = messageId;
    this.messageContent = messageContent;
    this.createDate = createDate;
  }

  @Override
  public String toString() {
    return "BaseMessage{" +
        "createDate=" + createDate +
        ", receiveDate=" + receiveDate +
        ", messageContent='" + messageContent + '\'' +
        ", messageId=" + messageId +
        '}';
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public Date getReceiveDate() {
    return receiveDate;
  }

  public void setReceiveDate(Date receiveDate) {
    this.receiveDate = receiveDate;
  }

  public String getMessageContent() {
    return messageContent;
  }

  public void setMessageContent(String messageContent) {
    this.messageContent = messageContent;
  }

  public int getMessageId() {
    return messageId;
  }

  public void setMessageId(int messageId) {
    this.messageId = messageId;
  }
}
